import Layout from '@/layout'

const purchaseRouter = {
  path: '/purchase',
  component: Layout,
  name: 'Purchase',
  meta: {
    title: '采购',
    icon: 'tree',
    roles: ['admin', '采购']
  },
  children: [
    {
      path: 'addElectronic',
      name: 'Tree',
      component: () => import('@/views/purchase/addElectronic'),
      meta: { title: '添加元器件采购单', icon: 'tree' }
    },
    {
      path: 'addProduct',
      name: 'Tree',
      component: () => import('@/views/purchase/addProduct'),
      meta: { title: '添加产品配件采购单', icon: 'tree' }
    },
    {
      path: 'product',
      name: 'Tree',
      component: () => import('@/views/purchase/product'),
      meta: { title: '产品配件采购单查询', icon: 'tree' }
    },
    {
      path: 'electronic',
      name: 'Tree',
      component: () => import('@/views/purchase/electronic'),
      meta: { title: '元器件采购单查询', icon: 'tree' }
    }
  ]
}

export default purchaseRouter
